#!/usr/bin/bash

set -e

DAV1D_FORK=https://code.videolan.org/videolan/dav1d.git
DAV1D_COMMIT=0.9.0
DAV1D_LOCAL_REPO=extra/dav1d

function pull_repo()
{
    echo "Deleting old repo: "$2
    rm -rf $2
    mkdir -p $2
    git clone --depth 1 --branch $3 $1 $2
}

# pull_repo $FDKAAC_FORK $FDKAAC_LOCAL_REPO $FDKAAC_COMMIT
# pull_repo $X264_FORK $X264_LOCAL_REPO $X264_COMMIT
# pull_repo $DAV1D_FORK $DAV1D_LOCAL_REPO $DAV1D_COMMIT
